
import { ref } from 'vue';
const useApproval = () => {

    const approvalVisible = ref(false);
    const approvalObj = ref({});

    /**
     * @description: 打开采购编辑
     */
    const handleOpenApprovalClick = (row: any) => {
        console.log(row);
        approvalObj.value = row;
        approvalVisible.value = true;
    };


    return {
        approvalVisible,
        approvalObj,
        handleOpenApprovalClick
    }
};

export default useApproval;